<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var obj = {
        2: 3,
        3: 4,
        length: 2,
        splice: Array.prototype.splice,
        push: Array.prototype.push,
      };
      obj.push(1);
      obj.push(2);
      console.log(obj);
      let obj1={
        0: 3,
        3: 4,
        length: 2,
      }
      Array.prototype.push.call(obj1,5)
      console.log(obj1);
    </script>
  </body>
</html>
